#include<iostream>
#include<cstring>
using namespace std;
int main()
{
	char arr[1100];
	int n;
	cin >> n;
	getchar();
	while (n--)
	{
		fgets(arr, 50, stdin);
		int len = strlen(arr)-1;
		bool flag = true;
		for (int i = 0; i < len / 2; i++)
		{
			if (arr[i] != arr[len - 1 - i])
			{
				flag = false;
				break;
			}
		}
		if (flag) {
			cout << "yes" << endl;
		}
		else {
			cout << "no" << endl;
		}
	}
	return 0;
}